<template>
  <div></div>
</template>

<script setup lang="ts">
  import { useRouter, useRoute } from 'vue-router';

  const router = useRouter();
  const route = useRoute();

  const { redirect, ...res } = route.query;

  router.replace({
    name: (redirect as string) || 'RootMenu',
    query: { ...res },
  });
</script>
